package com.money.tracker.common.exception;

import com.money.tracker.common.enums.IResponseEnum;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 自定义异常
 * <p>
 *
 * @author zhangshuai
 * &#064;@date 2024/09/21
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class MoneyTrackerBizException extends RuntimeException {

    public MoneyTrackerBizException(String msg) {
        super(msg);
    }

    public MoneyTrackerBizException(IResponseEnum responseEnum) {
        super(responseEnum.getMsg());
    }

    public MoneyTrackerBizException(IResponseEnum responseEnum, String msg) {
        super(responseEnum.getMsg() + msg);
    }
}
